package butines.game.steering.behavior;

import butines.core.math2d.Vector2D;
import butines.game.steering.SteerLibrary;

public abstract class AbstractBehavior extends SteerLibrary implements Behavior {

	private boolean turned;

	private float weight = 1;

	public void on() {
		turned = true;
	}

	public void off() {
		turned = false;
	}

	public boolean isTurned() {
		return turned;
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	public String toString() {
		return getClass().getSimpleName() + " W: " + weight + " " + (turned ? "on" : "off");
	}

	public abstract Vector2D calculate();

	
}
